/**
 * @Author: leibidong
 * @Description: md5加密工具
 * @File:  md5Util
 * @Version: 1.0.0
 * @Date: 2021/7/3 10:40
 */
package utils

import (
	"crypto/md5"
	"encoding/hex"
)

/**
 * @Author leibidong
 * @Description md5加密工具
 * @Date  2021/7/3 10:35
 **/
func GetMD5(token string) (key string) {
	token = token + "asdfg"
	md5Ctx := md5.New()
	md5Ctx.Write([]byte(token))
	data := md5Ctx.Sum(nil)
	return hex.EncodeToString(data)
}
